{% extends "ticket/list_small.html" %}

{% block extrastyle %}
{{ block.super }}
<style type="text/css">
    #filtres-title {
        cursor: pointer;
    }
</style>
{% endblock %}

{% block extrajs %}
{{ block.super }}
<script type="text/javascript" charset="utf-8">
    dojo.addOnLoad(function() {
        dojo.connect(dojo.byId("filtres-title"), "onclick", function() {
            toggleFadding("filtres-table", null, null, null, null);
        });
    });
</script>
{% endblock %}

{% block content_title %}
{{ block.super }}{% if view %} : {{ view.name }}{% endif %}
{% endblock %}

{% block list_filters %}
<fieldset class="form">
  <legend id="filtres-title">Filtrage</legend>
  <div id="filtres-table" {% if view %}style="display: none;"{% endif %}>
    <table class="search">
        <tr>
            <th>{{ form.client.label_tag }}</th>
            <td>{{ form.client }}</td>
            <th>{{ form.state.label_tag }}</th>
            <td rowspan="3" class="checkbox-list">{{ form.state }}</td>
        </tr>
        <tr>
            <th>{{ form.text.label_tag }}</th>
            <td>{{ form.text }}</td>
            <th></th>
            
        </tr>
        <tr>
            <th>{{ form.view_name.label_tag }}</th>
            <td>{{ form.view_name }}</td>
            <th></th>
        </tr>
    </table>
        <input id="delete_view" name="delete_view" dojoType="dijit.form.CheckBox" value="1" /><label for="delete_view">Supprimer cette vue</label><button type="submit" dojoType="dijit.form.Button" name="validate-filters" value="1">Enregistrer</button>
    </div>
</fieldset>
{% endblock %}
